home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / cppdll / dllinit.asm < prev    next >
Assembly Source File  |  1990-02-21  |  408b  |  30 lines

  1.         title   LibMain.asm
  2.  
  3. ;memL     EQU    1
  4.          ?WIN = 1
  5.          ?PLM = 1
  6. .xlist
  7. include cmacros.inc
  8. .list
  9.  
  10. assumes CS,CODE
  11.  
  12. EXTERNFP <LibMain>
  13.  
  14. sBegin  CODE
  15.  
  16. cProc   LoadLib,<PUBLIC,FAR,NODATA>,<si,di>
  17. cBegin
  18.     xor   ax,ax
  19.     jcxz  LoadError
  20.     push  di    ; hInstance
  21.     push  ds    ; 
  22.     push  cx    ; heap size
  23.     call  LibMain
  24.     mov   ax,1
  25. LoadError:
  26. cEnd
  27. sEnd    CODE
  28.     end LoadLib
  29.     
  30.